<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Error extends Model
{
    protected $table = 'error_correction';

    public static function getErrorList($pageNo, $pageSize)
    {
        return self::offset(($pageNo - 1) * $pageSize)->limit($pageSize)->get([DB::raw("ifnull(pid,'') as stationId")]);
    }
}
